﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MX.Proto
{
    public class Notify
    {

        /// <summary>
        /// 订阅者标识,一个订阅者可以多处订阅
        /// </summary>
        public string AccessId { get; set; }


        /// <summary>
        /// 通知Id
        /// </summary>
        public string NotifyId { get; set; }

        /// <summary>
        /// 订阅消息名称
        /// </summary>
        public string SubscribeName { get; set; } 

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 通知状态1:等待通知,2:通知中,3:上次通知失败等待重试,3:通知失败需手动处理,4:通知成功
        /// </summary>
        public NotifyStatus Status { get; set; }

        /// <summary>
        /// 通知尝试次数
        /// </summary>
        public int TryCount { get; set; }

        /// <summary>
        /// 上次通知时间
        /// </summary>
        public DateTime PreActionTime { get; set; }

        /// <summary>
        /// 下次通知时间
        /// </summary>
        public DateTime NextActionTime { get; set; }



    }

}
